import request from '@/utils/http';
/** 获取菜单列表 */
export const getMenuList = (data: object) =>{
  return request.post(`/menu/getMenuList`, data);
};

export const getMenuTreeList = (data: object) =>{
  return request.post(`/menu/getMenuTreeList`, data);
};

export const addMenu = (data: object) =>{
  return request.post(`/menu/addMenu`, data);
};

export const editMenu = (data: object) =>{
  return request.post(`/menu/editMenu`, data);
};

export const deleteMenuById = (data: object) =>{
  return request.post(`/menu/deleteMenuById`, data);
};

export const editMenuStatus = (data: object) =>{
  return request.post(`/menu/editMenuStatus`, data);
};